idf_component_register(
    SRCS "RCSwitch.cpp"
         "TCSwitch.cpp"
         "SwitchAPI.cpp"
    INCLUDE_DIRS "."
    REQUIRES driver esp_common freertos nvs_flash esp_timer approxy cmlog
)


add_definitions(-DESP32)
# # 设置特定组件的日志级别
# set(COMPONENT_LOG_LEVEL debug)  # 可选：error, warning, info, debug, verbose
# set(COMPONENT_REQUIRES "esp_log")  # 确保包含esp_log组件